<template>
  <div class="home">
    <h1>首页</h1>
    <ul class="navs">
      <router-link to="/home/main" active-class="on" tag="li"
        >主要内容</router-link
      >
      <router-link to="/home/other" active-class="on" tag="li"
        >其他</router-link
      >
    </ul>

    <router-view></router-view>
  </div>
</template>

<script>
// @ is an alias to /src
import axios from "axios";
export default {
  name: "Home",
  mounted() {
    axios
      .get(
        "/ajax/movieOnInfoList?token=&optimus_uuid=B9F9302042BD11EB96E56535BED046E5DF7936CC0A104AF5AFAEB38D840E7E08&optimus_risk_level=71&optimus_code=10"
      )
      .then((res) => {
        console.log(res);
      });
  },
};
</script>

<style lang='scss' scoped>
.navs {
  display: flex;
  li {
    flex: 1;
    text-align: center;
    list-style: none;
  }
  .on {
    color: blue;
  }
}
</style>
